package BookTest;

public class K2Test {
    public static void main(String[] args) {
        String str ="JDK 11.0.1";
        for(int i=0;i<str.length();i++){
            char a = str.charAt(i);
            if(Character.isDigit(a)){
                System.out.println(a+"该字符是数字");
            }else if(Character.isLetter(a)){
                System.out.println(a+"该字符是字母");
            }

        }

    }
}
